package top.chmin.project.cloud.common.dict.type.auto;

// field import auto
// #bind.field.dictName#

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.entity.Page;

import java.util.List;

/**
 * chmin
 * 2023-12-27 16:04:10
 * cloud-builder
 */
@RestController
public class DictTypeController implements
// entity selectInterface auto
// entity searchInterface auto
// entity searchInterface auto
        DictTypeDictCodeSearch,

        DictTypeSave,
        DictTypeUpdateById,
        DictTypeDeleteById,
        DictTypeSelectById,
        DictTypeSelectPage {

    @Resource
    DictTypeService service;

    @Override
    public int save(DictTypeSave.Param param) {
        return service.save(param);
    }

    @Override
    public int updateById(DictTypeUpdateById.Param param) {
        return service.updateById(param);
    }

    @Override
    public int deleteById(DictTypeDeleteById.Param param) {
        return service.deleteById(param);
    }

    @Override
    public DictTypeSelectById.Result selectById(DictTypeSelectById.Param param) {
        return service.selectById(param);
    }

    @Override
    public Page<DictTypeSelectPage.Result> selectPage(DictTypeSelectPage.Param param) {
        return service.selectPage(param);
    }

// entity select auto

    // entity search auto
    // entity search auto
    @Override
    public List<DictTypeDictCodeSearch.Result> searchDictCode(DictTypeDictCodeSearch.Param param) {
        return service.searchDictCode(param);
    }



}
